package com.gome.axwl.aoc.entity.dto;

import java.io.Serializable;

/**
 * @Description: 接口请求 分页公用字段
 * @Auther: yinyuxin@gome.com.cn
 * @Date: 2018/4/28 15:36
 */
public class PageParamDto implements Serializable {


    private static final long serialVersionUID = 208189098497614784L;
    /**
     * 当前页码
     */
    private  Integer pageNum = 1;

    /**
     * 每页记录数
     */
    private  Integer pageSize = 10 ;

    /**
     * 总记录数
     */
    private Long total;

    /**
     * 总页数
     */
    private Integer pageCount;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        if (null!=pageNum){
            this.pageNum = pageNum;
        }

    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        if (null!=pageSize){
            this.pageSize = pageSize;
        }
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    @Override
    public String toString() {
        return "PageParamDto{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", total=" + total +
                ", pageCount=" + pageCount +
                '}';
    }
}
